package br.com.obardavez.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import br.com.obardavez.base.entity.BaseEntity;

@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Entity
@Table(name = "PARCEIRO", schema = "OBARDAVEZ")
@XmlRootElement
public class Parceiro implements BaseEntity {
	
	private static final long serialVersionUID = 1L;

	private Long id;
	
	private String empresa;
	
	private String cnpj;
	
	private String contato;
	
	private String email;
	
	private String telefone;
	
	private String url;
	
	private String logo;
	
	private String plano;
	
	private String forma;
	
	private boolean moderado;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID")
	@XmlElement
	public Long getId() {
		return id;
	}

	@Column(name = "EMPRESA")
	@XmlElement
	public String getEmpresa() {
		return empresa;
	}
	
	@Column(name = "CNPJ")
	@XmlElement
	public String getCnpj() {
		return cnpj;
	}
	
	@Column(name = "CONTATO")
	@XmlElement
	public String getContato() {
		return contato;
	}

	@Column(name = "EMAIL")
	@XmlElement
	public String getEmail() {
		return email;
	}
	
	@Column(name = "TELEFONE")
	@XmlElement
	public String getTelefone() {
		return telefone;
	}
	
	@Column(name = "URL")
	@XmlElement
	public String getUrl() {
		return url;
	}
	
	@Column(name = "LOGO")
	@XmlElement
	public String getLogo() {
		return logo;
	}

	@Column(name = "PLANO")
	@XmlElement
	public String getPlano() {
		return plano;
	}
	
	@Column(name = "FORMA")
	@XmlElement
	public String getForma() {
		return forma;
	}

	@Column(name = "MODERADO")
	@XmlElement
	public boolean getModerado() {
		return moderado;
	}
	
	public void setId(Long id) {
		this.id = id;
	}

	public void setEmpresa(String empresa) {
		this.empresa = empresa;
	}

	public void setCnpj(String cnpj) {
		this.cnpj = cnpj;
	}

	public void setContato(String contato) {
		this.contato = contato;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public void setPlano(String plano) {
		this.plano = plano;
	}

	public void setForma(String forma) {
		this.forma = forma;
	}

	public void setModerado(boolean moderado) {
		this.moderado = moderado;
	}
}
